<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+
	request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<base href="<%=basePath%>">
<body>
	<div class="upload">
    <div id="head"></div>
   	<form enctype="multipart/form-data" method="post" name="fileinfo">
    	<input type="file" id="file" name="file"><!-- type file固定类型 -->
    	<input id="upload" type="button" value="上传头像">
   	</form>
  	</div>
  	<form id="addForm" action="user/add" method="get">
  		<input type="text" name="uid">编号<br/>
   		<input type="text" name="uname">姓名<br/>
  		<input type="text" name="upwd">密码<br/>
   		<input type="text" name="utel">电话<br/>
   		<input type="text" name="usex">性别<br/>
   		<input type="text" name="utype">标志<br/>
   		<input type="hidden" name="uheadimg">
		<input type="hidden" name="model" value="student"><br/>
		<input type="hidden" name="choice" value="add"><br/>
		<input id="addBtn" type="submit" value="注册">
		<button><a href="user/getAll">返回</a> </button>
	</form>
</body>
</html>